package com.jumi.microservice.common.constant;

/**
 * @Description: 仓库库存变动类型
 * @Author Abel Yang
 * @Date 2020/10/12/012 16:26
 */
public enum StockChangeTypeEnum {

    //仓库库存变动类型
    //TODO 需要和数据库对应
    TYPE_TRANSFER_IN(6, "仓库调货入库"),
    TYPE_TRANSFER_OUT(30, "仓库调货出库"),

    TYPE_TRANSFER_TO_DAMAGE(38, "调仓调入破损仓"),
    TYPE_TRANSFER_TO_NORMAL(39, "调仓调入正规仓"),

    TYPE_WAREHOUSE_OUT_AFTER_SALE_ORDER(9, "售后订单申请出库"),

    TYPE_COMMODITY_APPLY(40, "商城申请物料库存"),
    TYPE_COMMODITY_RELEASE(41, "商城释放物料库存"),
    TYPE_ORDER_OUT(51, "订单出库"),
    TYPE_CANCEL_TO_DAMAGE(52, "取消调仓调入破损仓"),
    TYPE_CANCEL_TO_NORMAL(53, "取消调仓调入正规仓"),


    ;

    private final Integer changeType;
    private final String desc;

    StockChangeTypeEnum(Integer changeType, String desc) {
        this.changeType = changeType;
        this.desc = desc;
    }

    public Integer getChangeType() {
        return changeType;
    }

    public String getDesc() {
        return desc;
    }
}